package rafael.bot;

import static roshambo.Player.PAPEL;
import static roshambo.Player.PEDRA;
import static roshambo.Player.TESOURA;

public abstract class Model {

    public abstract void init(int movs);

    public abstract void learn(int[] input, int output, double learningRate);

    public abstract int predictMove(int input[]);

    public static final int bestAnswer(int move) {
        switch (move) {
            case PEDRA:
                return PAPEL;
            case PAPEL:
                return TESOURA;
            case TESOURA:
                return PEDRA;
        }
        return PEDRA;
    }
}
